<?php
$this->setLayout('template' . DS . 'search.phtml');
$types = array('article' => '文章', 'concessions' => '优惠', 'subject' => '主题');
$this->startBlock('location');
?>
<div class="public_width location">您当前的位置：<a href="<?php echo $this->BaseUrl ?>">首页</a> >> 搜索 >> 主题</div>
<?php
$this->endBlock();
$this->startBlock();
?>
<div class="searchkey">
    <dl>
        <dt>
            <?php foreach ($this->stat as $type): ?>
                <a<?php echo $this->searchType == $type['type']? ' class="off"': ''?> href="<?php echo $this->getUrl(array('tag' => $this->tag, 'type' => $type['type']), 'list') ?>"><em><span><?php echo $types[$type['type']] ?></span></em></a> |
            <?php endforeach ?>
            </dt>
            <dd><ul>
                <?php foreach ($this->list as $item): ?>

                    <li>
                        <span><?php echo $this->formatDate($item->getModifiedTime()) ?></span>
                        <a href="<?php echo $this->getUrl(array('id' => $item->getId()), 'detail', 'content', 'subject') ?>">
                        <?php echo $item->getName() ?>
                    </a>
                </li>
                <?php endforeach ?>
                    </ul>
            </dd>
    </dl>
<?php echo $this->pagination->toHtml()?>
</div>
<?php $this->endBlock(); ?>